﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RestSharp;

namespace Openapi.Weibo
{
    public interface IResponseResult<T> : IRestResponse
    {
        /// <summary>
        /// 返回数据
        /// </summary>
        bool IsReturnError { get; set; }

        /// <summary>
        /// Deserialized entity data
        /// </summary>
        T SuccessData { get; set; }

        /// <summary>
        /// Deserialized error data
        /// </summary>
        ResponseError ErrorData { get; set; }

        /// <summary>
        /// Cookies returned by server with the response
        /// </summary>
        new IList<RestResponseCookie> Cookies { get; set; }

        /// <summary>
        /// Headers returned by server with the response
        /// </summary>
        new IList<Parameter> Headers { get; set; }
    }
}
